#include<iostream>
#include<vector>
using namespace std;
class Solution{
    public:
        vector<int> twosum(vector<int>& nums, int target)
        {
            int flag = 0;
            vector<int>answer;//答案数组，即两个符合条件的元素下标组合
            for(unsigned int i = 0; i < nums.size(); i++)
            {
                if(flag == 1) break;//提前退出循环的条件
                for(unsigned int j = i + 1; j < nums.size(); j++)
                {
                    if(nums[i] + nums[j] == target)
                    {
                        flag = 1;
                        answer.push_back(i);
                        answer.push_back(j);//将两个元素的下标压入容器内
                        break;
                    }
                }
            }
            return answer;
        }

};
int main()
{
    vector<int> question;
    int n, t, p; //t为中间变量，代表每一个输入的元素值
    cin >> n >> p; //n为数组长度，p为目标值
    for(int l = 0; l < n; l++)
    {
        cin >> t;
        question.push_back(t);//初始化目标数组
    }
    Solution s;
    question = s.twosum(question, p);
    for(unsigned int q = 0; q < question.size(); q++)
    {
        cout << question[q];
        if(q == question.size() - 1) cout << endl;
        else cout << ",";
    }
    cout << "this is a test for complination!" << endl;
    return 0;
}